/** 修改组件库默认样式 */


::v-deep .u-tag--primary {
  background-color: var(--kui-color-theme);
  border-color: var(--kui-color-theme);
}

::v-deep .u-button--primary {
  background-color: var(--kui-color-theme);
  border-color: var(--kui-color-theme);
}

::v-deep .u-subsection--subsection {
  height: 20rpx;
}

::v-deep .u-subsection__item {
  padding: 8rpx 12rpx;
}

::v-deep .u-search__content__input {
  font-size: 10rpx;
}

::v-deep .u-search__content {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  margin-right: -10px;
  height: 25rpx;

  .uni-input-input {
    height: 25rpx;
  }
}

::v-deep .u-search__action.u-search__action--active {
  background: var(--kui-color-theme);
  max-height: 26rpx;
  height: 28rpx;
  border-radius: 3rpx;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 5rpx;
  font-size: 10rpx;
}

::v-deep .u-button {
  border-radius: 3rpx;
  height: 25rpx;
}

::v-deep .uni-date__x-input {
  font-size: 10rpx;
}

::v-deep .uni-calendar-item--multiple .uni-calendar-item--before-checked,
.uni-calendar-item--multiple .uni-calendar-item--after-checked {
  background-color: var(--kui-color-theme);
}

/* uni-table */
// ::v-deep .uni-table {
//   border-radius: 5rpx;
//   overflow: hidden;
// }

::v-deep .uni-table-td,
.uni-table-th {
  font-size: 10rpx;
  line-height: 12rpx;
}

::v-deep .page--active {
  background-color: var(--kui-color-theme);
}
.uni-pagination__num-tag {
  min-width: 15rpx;
  font-size: 10rpx;
}

::v-deep .uni-table-th {
  // background: var(--kui-color-theme-light);
  background: #f2f2f2;
  /* color: white; */
}

/* uni 拓展组件  */
/* 保持与 u-input u-search 高度一致 */
::v-deep .uni-select,
.uni-select__input-box {
  height: 25rpx;
  font-size: 10rpx;
  justify-content: space-between;
  .uni-select__input-placeholder,
  .uni-select__selector-empty,
  .uni-select__selector-item {
    font-size: 10rpx;
  }

  /* 兼容下拉名字超长的情况 */
  .uni-select__input-text {
    max-width: 100rpx;
    flex: auto;
  }
}

::v-deep .u-input {
  padding: 0px 9px !important;
  height: 25rpx;
}

::v-deep .u-tag--medium {
  height: 10rpx;
  margin-left: 5rpx;
  padding: 0rpx 3rpx;
}

/** 当前项目的样式 */

.tag {
  background-color: var(--kui-color-theme-light);
  color: rgb(138, 138, 138);
  padding: 2rpx 5rpx;
  font-size: 8rpx;
  border-radius: 2rpx;
  // line-height: 15rpx;
  white-space: nowrap;

  &.mini {
    font-size: 6rpx;
    padding: 2rpx 5rpx;
  }
}

//* uview 预览图片弹窗
uni-movable-view {
  img {
    /** 优化在平板宽屏下的显示 (app 不生效，应该是组件编译名字不同，待排查，非必须) */
    max-height: 80vh !important;
  }
}

.uni-stat-box {
  .uni-select {
    // height: 30rpx;
    .uni-select__input-text {
      text-align: left;
    }
    .uni-select__input-box{
      .uni-icons{
        margin-right: 10rpx;
      }
    }
    .uni-select__selector-item{
      padding: 4rpx 10rpx;
      // border-bottom: 1px solid #f3f3f3;
    }
  }
}
